<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>
    <%@ include file="datalink.jsp" %>
    <html>
        <head>
        <meta http-equiv="Content-Type" content="text/html; charset=ISO-utf-8">
        <title>check</title>
        <style>
            #a {
            width:50%;
            height:100%;
            margin-left:25%;
            border: 1px dashed ;
            background-color:rgba(46, 184, 194, 0.397);
            text-align:center;
            }
            body{
                text-align:center;
                background-color:lightblue;
            }
            .ku{
                height: 20px;
                width:25%;
                background-color: lemonchiffon;
                margin-left: 37%;
            }
        </style>
        </head>
        <body>
            <div id="a">
                <%
                Statement st = null;
                st = conn.createStatement();
                String kx=request.getParameter("kx");
                String exe="SELECT * FROM class where cno ='"+kx+"';";
                ResultSet rs = null;  
                rs = st.executeQuery(exe);
                while(rs.next()){
                    %><div class="ku" style="margin-top: 30%;">课序号：<%out.print(rs.getString(1));%></div><%
                    %><div class="ku">课程名：<%out.print(rs.getString(2));%></div><%
                    %><div class="ku">教室：<%out.print(rs.getString(3));%></div><%
                    %><div class="ku">授课老师：<%out.print(rs.getString(4));%></div><%
                    %><div class="ku">上课时间：<%out.print(rs.getString(5));%></div><%
                    %><div class="ku">周几：<%out.print(rs.getString(6));%></div><%
                    %><div class="ku">课次：<%out.print(rs.getString(7));%></div><%
                }
                %>
                <button onclick="window.location.href='./srkx.jsp'" type="button" id="add" >返回</button>
            </div>
        </body>